#include <gtk/gtk.h>

G_MODULE_EXPORT void
destroy_cb(GtkWidget *widget,gpointer data) {
	g_debug("destroy_cb\n");
	gtk_main_quit();
}

int
main(int argc,char *argv[]) {
	GtkWidget *window;

	gtk_init(&argc,&argv);

	window=gtk_window_new(GTK_WINDOW_TOPLEVEL);

	g_signal_connect(G_OBJECT(window),"destroy",G_CALLBACK(destroy_cb),NULL);

	gtk_widget_show_all(window);

	gtk_main();

	return 0;
}

